package com.example.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.springframework.data.neo4j.core.schema.*;

/**
 *
 */
@RelationshipProperties
public class GuanXi_YM {

    @RelationshipId
    private Long id;

    @Property
    private String relation;

    @TargetNode
    @JsonIgnoreProperties("eventList")
    private Month month;

    public GuanXi_YM(String relation, Month month) {
        this.relation = relation;
        this.month = month;
    }

    public String getRelation() {
        return relation;
    }

    public void setRelation(String relation) {
        this.relation = relation;
    }


    public Month getMonth() {
        return month;
    }

    public void setMonth(Month month) {
        this.month = month;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
